import { createApp } from "vue";
import App from "./App.vue";
import "./registerServiceWorker";
import router from "./router";
import store from "./store/index";

// 1. 引入你需要的组件
import {
  List,
  Button,
  Search,
  NoticeBar,
  Tab,
  Tabs,
  Swipe,
  SwipeItem,
  Cell,
  CellGroup,
  Tabbar,
  TabbarItem,
  Skeleton,
  Card,
  Image,
  Lazyload,
  Tag,
  NavBar,
  Field,
  Dialog,
  Uploader,
  Picker,
  ActionSheet,
  Overlay,
  Switch,
  Col,
  Row,
  ConfigProvider,
  Icon,
  BackTop,
  FloatingBubble,
  Form,
  Notify,
  Popover,
  RadioGroup,
  Radio,
  Checkbox,
  TextEllipsis,
  CheckboxGroup,
  Grid,
  GridItem,
  ShareSheet,
  Space,
} from "vant";

// 2. 引入组件样式
import "vant/lib/index.css";

const app = createApp(App);

// 3. 注册你需要的组件
app
  .use(Tabbar)
  .use(TabbarItem)
  .use(CellGroup)
  .use(Cell)
  .use(Button)
  .use(Search)
  .use(NoticeBar)
  .use(Tab)
  .use(Tabs)
  .use(router)
  .use(Swipe)
  .use(SwipeItem)
  .use(List)
  .use(Skeleton)
  .use(Card)
  .use(Image)
  .use(Lazyload)
  .use(Tag)
  .use(NavBar)
  .use(Field)
  .use(Dialog)
  .use(Uploader)
  .use(Picker)
  .use(ActionSheet)
  .use(Overlay)
  .use(store)
  .use(Switch)
  .use(Col)
  .use(Row)
  .use(ConfigProvider)
  .use(Icon)
  .use(BackTop)
  .use(FloatingBubble)
  .use(Form)
  .use(Notify)
  .use(Popover)
  .use(RadioGroup)
  .use(Radio)
  .use(Checkbox)
  .use(CheckboxGroup)
  .use(TextEllipsis)
  .use(Grid)
  .use(GridItem)
  .use(ShareSheet)
  .use(Space)
  .mount("#app");
